package com.syg.Controller;

import com.syg.Interface.InterfaceSpi;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author oe_shenyiguang
 * @date 2021年10月8日10:17:49
 * @version 1.0
 */
@RestController
@RequestMapping("spi")
public class TestSpi {

    @Resource
    private InterfaceSpi spi;

    @RequestMapping("test")
    public String test(){
        spi.printName();
        return spi.getClass().getName();
    }
}
